<%@page import="myJDBC.lowLevel.ObjectTypes"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="java.util.*"%>
<%@page import="myJDBC.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
<%@include file="smallJsps/styles.jsp" %>
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Choose parent</title>
<%@include file="smallJsps/bootstrapInclude.jsp" %>
</head>
<body>
<%@include file="smallJsps/logoutButton.jsp" %>
<%@include file="smallJsps/checkAdmin.jsp" %>
<div class="row-fluid">
		<div class="span6 offset2">
	<h3>Choose parent and name</h3>
	<form action="createObjectType2" name="formCrObjType1" method="POST">
	<label>name<br><input type="text" name="name"></label><br>
	<label>parent<br><select name="selParent" >
		<option value=-1 selected="selected">no parent</option>
					<%
						ArrayList<String> objTypes = ObjectTypes.returnObjectTypes();
						for (int i = 0; i < objTypes.size(); i = i + 3) {
							out.println("<option value="+objTypes.get(i)+">" + objTypes.get(i+1) + "</option>");
						}
					%>
				</select></label>
	<br>
	<input class="btn btn-large btn-primary" type="submit" value="Create">
	</form>
	<form method="get" action="privateOffice"><button class="btn" type="submit">privateOffice</button></form>
	</div>
	</div>
</html>